package com.senlingspace.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.senlingspace.common.annotation.Excel;
import com.senlingspace.common.core.domain.BaseEntity;

/**
 * 商品对象 slkj_product
 *
 * @author SenlingSpace
 * @date 2024-10-18
 */
public class SlkjProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    private Long productId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private String productNumber;

    /** 商品进货价（单位分） */
    @Excel(name = "商品进货价", readConverterExp = "单=位分")
    private Long principal;

    /** 商品售卖价格（单位：分） */
    @Excel(name = "商品售卖价格", readConverterExp = "单=位：分")
    private Long price;

    /** 商品类别id */
    @Excel(name = "商品类别id")
    private Long productTpyeId;

    /** 商品库存数 */
    @Excel(name = "商品库存数")
    private Long number;

    /** 商品类别名称 */
    @Excel(name = "商品类别名称")
    private String productTpyeName;

    /** 商品图片地址 */
    @Excel(name = "商品图片地址")
    private String productImg;

    /** 上下架状态（0上架，1下架） */
    @Excel(name = "上下架状态", readConverterExp = "0=上架，1下架")
    private String status;

    /** 商品介绍 */
    @Excel(name = "商品介绍")
    private String productIntroduction;

    /** 删除表示（0代表存在 1代表删除） */
    private String delFlag;
    
    /** 小程序上架状态 **/
    private String appStatus;

    public String getAppStatus() {
        return appStatus;
    }

    public SlkjProduct setAppStatus(String appStatus) {
        this.appStatus = appStatus;
        return this;
    }

    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setProductNumber(String productNumber)
    {
        this.productNumber = productNumber;
    }

    public String getProductNumber()
    {
        return productNumber;
    }
    public void setPrincipal(Long principal)
    {
        this.principal = principal;
    }

    public Long getPrincipal()
    {
        return principal;
    }
    public void setPrice(Long price)
    {
        this.price = price;
    }

    public Long getPrice()
    {
        return price;
    }
    public void setProductTpyeId(Long productTpyeId)
    {
        this.productTpyeId = productTpyeId;
    }

    public Long getProductTpyeId()
    {
        return productTpyeId;
    }
    public void setNumber(Long number)
    {
        this.number = number;
    }

    public Long getNumber()
    {
        return number;
    }
    public void setProductTpyeName(String productTpyeName)
    {
        this.productTpyeName = productTpyeName;
    }

    public String getProductTpyeName()
    {
        return productTpyeName;
    }
    public void setProductImg(String productImg)
    {
        this.productImg = productImg;
    }

    public String getProductImg()
    {
        return productImg;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setProductIntroduction(String productIntroduction)
    {
        this.productIntroduction = productIntroduction;
    }

    public String getProductIntroduction()
    {
        return productIntroduction;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("productId", getProductId())
                .append("name", getName())
                .append("productNumber", getProductNumber())
                .append("principal", getPrincipal())
                .append("price", getPrice())
                .append("productTpyeId", getProductTpyeId())
                .append("number", getNumber())
                .append("productTpyeName", getProductTpyeName())
                .append("productImg", getProductImg())
                .append("status", getStatus())
                .append("productIntroduction", getProductIntroduction())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
